<?php
namespace Admin\Controller;
use Think\Controller;
class IndexController extends BaseController {
    public function index(){
        $menu=C('menu');
        $this->assign('menu',$menu);
        $this->display('index');
    }

    public function getSubMenu(){
        $fid=I('get.fid');
        $menu=C('menu');
        $data=$menu[$fid-1]['Item'];
        $this->ajaxReturn($data);
    }

    public function main(){
        $this->display();
    }

}